/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function validateContent(){
    var content = document.getElementById("areaQuestion").value;
    if(content.length < 1 ||  content.length > 500){
        document.getElementById("questionStatus").style.backgroundColor = "#FFFF66";
        document.getElementById("questionStatus").innerHTML = "Bạn chưa nhập câu hỏi!";
        document.getElementById("areaQuestion").focus();
        return false;
    }
    return true;
}

function validateQuestion(){

    var checkCM = true;

    if(!validateContent()){
        checkCM = false;
    }

    if(checkCM==true){
        insertComment();
    }

}
